const express = require('express')
const app = express()
const router = require('./16api-router')
//设置中间体解析数据
const cors = require('cors')
//解决跨域问题
app.use(cors())
app.use(express.urlencoded({extended:false}))
app.use('/api',router)
app.listen(80,() => {
 console.log('http://127.0.0.1')
})